
import { useRoutes } from "react-router-dom";
import Home from "../pages/home";
import Login from "../pages/login";

const routes = [
    { path: "/", element: <Home /> },
    {path: '/login',element: <Login/>},
]

function AppRoute() {
    let element = useRoutes(routes);
    return element;
}

export default AppRoute;
